package com.aya.compsite;

import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author liushang@zsyjr.com
 * @version 1.0
 * @description 描述信息
 * @date 2019/12/26
 **/
@Service
public class CompositeSayhi implements ICompositeBean {
    @Resource
    List<ICompositeBean> compositeBeanList;

    @Override
    public void sayHi(String name) {
        for (ICompositeBean iCompositeBean : compositeBeanList) {
            iCompositeBean.sayHi(name);
        }
    }
}
